package com.real8.romemp.client.ui;

import com.google.gwt.user.client.ui.IsWidget;

/**
 * 
 * @author Rutger van der Eijk
 * 
 */
public interface QuestionAndAnswerView extends IsWidget {
	public interface Presenter {
		/**
		 * On an answer to the question
		 */
		void onAnswer(int answer);
	}

	void setPresenter(Presenter presenter);

	/**
	 * Sets whether the view is visible.
	 * 
	 * @param visible
	 *            <code>true</code> to show the view , <code>false</code> to
	 *            hide it
	 */
	public void setVisible(boolean visible);

	/**
	 * Show question
	 * 
	 * @param question
	 */
	void showQuestion(String question);
}
